/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package AppletsSamples;

import java.awt.*;

/**
 *
 * @author Jakim
 */
class CustomCanvas extends Canvas{

    public CustomCanvas () {
        setBackground (Color.yellow);
    }

    @Override
    public void paint (Graphics g) {
        Graphics2D g2;
        int Height;

        g2 = (Graphics2D) g;
        Height = getHeight();
        g2.drawString ("The CustomCanvas is in the CENTER area", 10, Height/2);
    }

}
